<template>
  <div>
    <h1>Movie:{{ num }}</h1>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue';
export default defineComponent({
  name: 'Movie',
});
</script>
<script lang="ts" setup>
import { inject } from 'vue';

const num = inject('num');
console.log(num);
</script>

<style lang="less" scoped></style>
